package com.mida.bms.report.mapper;

import com.mida.bms.report.entity.DocStructTemplateAuthSpace;
import com.mida.bms.report.vo.DocStructTemplateAuthSpaceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DocStructTemplateAuthSpaceMapper {
    int deleteByPrimaryKey(Long stTempAuthSpSoid);

    int insert(DocStructTemplateAuthSpace record);

    int insertSelective(DocStructTemplateAuthSpace record);

    DocStructTemplateAuthSpace selectByPrimaryKey(Long stTempAuthSpSoid);

    int updateByPrimaryKeySelective(DocStructTemplateAuthSpace record);

    int updateByPrimaryKey(DocStructTemplateAuthSpace record);

    Integer countAuthSpName(String stTempAuthSpName);

    List<DocStructTemplateAuthSpace> findAll(@Param("searChData") String searChData,@Param("hospitalSoid") Long hospitalSoid);

    Integer findPageCount(@Param("pageSt") Long pageSt, @Param("pageEd") Long pageEd, @Param("searChData") String searChData);

    List<DocStructTemplateAuthSpaceVo> findPage(@Param("pageSt") Long pageSt, @Param("pageEd") Long pageEd, @Param("searChData") String searChData);

    DocStructTemplateAuthSpaceVo selectByAuthSpSoid(long stTempAuthSpSoid);
}